Ubuntu 26.04: remove requiretty from /etc/sudoers.d/cloudstack and fix setup-sysvm-tmplt#13476
Conversation
|
relates to #13372 |
|
@blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 4.22 #13476 +/- ##
==========================================
Coverage 17.67% 17.67%
- Complexity 15790 15797 +7
==========================================
Files 5922 5923 +1
Lines 533173 533347 +174
Branches 65209 65248 +39
==========================================
+ Hits 94218 94253 +35
- Misses 428309 428435 +126
- Partials 10646 10659 +13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✖️ debian ✔️ suse15. SL-JID 18345 |
f04cfab to
02e89c0
Compare
|
@blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 18346 |
|
@blueorangutan test d12 kvm-debian12 |
|
@weizhouapache [SL] unsupported parameters provided. Supported mgmt server os are: |
|
@blueorangutan test debian12 kvm-debian12 |
|
@weizhouapache a [SL] Trillian-Jenkins test job (debian12 mgmt + kvm-debian12) has been kicked to run smoke tests |
|
@blueorangutan test ubuntu24 kvm-ubuntu24 |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ubuntu24 mgmt + kvm-ubuntu24) has been kicked to run smoke tests |
|
@blueorangutan test ubuntu22 kvm-ubuntu22 |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ubuntu22 mgmt + kvm-ubuntu22) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-16413)
|
|
[SF] Trillian test result (tid-16414)
|
|
[SF] Trillian test result (tid-16412)
|
the failures should be fixed by #13482 |
/tmp is a tmpfs type of filesystem
```
root@mgmt1:~# /usr/share/cloudstack-common/scripts/storage/secondary/setup-sysvm-tmplt -u 002c593f-eac9-4fee-85dd-44887a3f2042 -f /usr/share/cloudstack-m
+anagement/templates/systemvm/systemvmtemplate-4.22.0-x86_64-kvm.qcow2.bz2 -h kvm -d /tmp/tmp5782242889444060623/template/tmpl/1/3
....
Insufficient free disk space for target folder /tmp/tmp5782242889444060623/template/tmpl/1/3: avail=1739872k req=2120000k
root@mgmt1:~# mount | grep /tmp
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,nr_inodes=1048576,inode64,usrquota)
```
|
@blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 18430 |
|
@blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 18432 |
|
@blueorangutan test |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
@blueorangutan test ubuntu24 kvm-ubuntu24 |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ubuntu24 mgmt + kvm-ubuntu24) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-16463)
|
|
[SF] Trillian test result (tid-16465)
|
|
@blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 18476 |
|
moving to 4.22.2 milestone |
There was a problem hiding this comment.
LGTM
Tested manually the management server and kvm host installation on ubutnu 26.0.4 image
Perform vm life-cycle operations and it works fine
issue 1 : Clodustack-setup -databases works fine with sudo user
ubuntu@Ubuntu-26:~$ sudo cloudstack-setup-databases cloud:cloud@localhost --deploy-as=root:password -i 192.168.55.118
Mysql user name:cloud [ OK ]
Mysql user password:****** [ OK ]
Mysql server ip:localhost [ OK ]
Mysql server port:3306 [ OK ]
Mysql root user name:root [ OK ]
Mysql root user password:****** [ OK ]
Using specified cluster management server node IP 192.168.55.118 [ OK ]
Checking Cloud database files ... [ OK ]
Checking local machine hostname ... [ OK ]
Checking SELinux setup ... [ OK ]
Preparing /etc/cloudstack/management/db.properties [ OK ]
Applying /usr/share/cloudstack-management/setup/create-database.sql [ OK ]
Applying /usr/share/cloudstack-management/setup/create-schema.sql [ OK ]
Applying /usr/share/cloudstack-management/setup/create-database-premium.sql [ OK ]
Applying /usr/share/cloudstack-management/setup/create-schema-premium.sql [ OK ]
Applying /usr/share/cloudstack-management/setup/server-setup.sql [ OK ]
Applying /usr/share/cloudstack-management/setup/templates.sql [ OK ]
Processing encryption ... [ OK ]
Finalizing setup ... [ OK ]
CloudStack has successfully initialized database, you can check your database configuration in /etc/cloudstack/management/db.properties
Issue 2 : System vm installs correctly on "/var/tmp/cloud/templates/"
2026-07-10 13:05:27,682 DEBUG [c.c.c.ClusterManagerImpl] (Cluster-Heartbeat-1:[ctx-785ca7bf]) (logid:3f95cee8) Peer scan is finished. profiler: Done. Duration: 0ms , profilerQueryActiveList: Done. Duration: 0ms, , profilerSyncClusterInfo: Done. Duration: 0ms, profilerInvalidatedNodeList: Done. Duration: 0ms, profilerRemovedList: Done. Duration: 0ms,, profilerNewList: Done. Duration: 0ms, profilerInactiveList: Done. Duration: 0ms
2026-07-10 13:05:28,909 DEBUG [c.c.u.SystemVmTemplateRegistration] (qtp1404565079-342:[ctx-4e981609, ctx-f3160fe5]) (logid:bb1f1f2c) Successfully executed process [15583] for command [/usr/share/cloudstack-common/scripts/storage/secondary/setup-sysvm-tmplt -u 926af4ff-9244-4941-8794-5f7eb6e4390c -f /usr/share/cloudstack-management/templates/systemvm/systemvmtemplate-4.22.0-x86_64-kvm.qcow2.bz2 -h kvm -d /var/tmp/tmp4175976599880764237/template/tmpl/1/3 ].
2026-07-10 13:05:28,909 DEBUG [c.c.u.SystemVmTemplateRegistration] (qtp1404565079-342:[ctx-4e981609, ctx-f3160fe5]) (logid:bb1f1f2c) + umask 0022
+ [[ ! -u 926af4ff-9244-4941-8794-5f7eb6e4390c -f /usr/share/cloudstack-management/templates/systemvm/systemvmtemplate-4.22.0-x86_64-kvm.qcow2.bz2 -h kvm -d /var/tmp/tmp4175976599880764237/template/tmpl/1/3 =~ ^-.+ ]]
+ OPTERR=0
+ DISKSPACE=2120000
+ getopts h:f:d:u::# OPTION
+ case $OPTION in
+ uflag=1
+ uuid=926af4ff-9244-4941-8794-5f7eb6e4390c
+ getopts h:f:d:u::# OPTION
+ case $OPTION in
+ fflag=1
+ tmpltimg=/usr/share/cloudstack-management/templates/systemvm/systemvmtemplate-4.22.0-x86_64-kvm.qcow2.bz2
+ getopts h:f:d:u::# OPTION
+ case $OPTION in
+ hyper=kvm
+ getopts h:f:d:u::# OPTION
+ case $OPTION in
+ destdir=/var/tmp/tmp4175976599880764237/template/tmpl/1/3
+ getopts h:f:d:u::# OPTION
+ [[ kvm == kvm ]]
+ ext=qcow2
++ which qemu-img
+ qemuimgcmd=/usr/bin/qemu-img
+ localfile=926af4ff-9244-4941-8794-5f7eb6e4390c.qcow2
+ sudo mkdir -p /var/tmp/tmp4175976599880764237/template/tmpl/1/3
+ [[ 0 -ne 0 ]]
+ [[ -f /var/tmp/tmp4175976599880764237/template/tmpl/1/3/template.properties ]]
++ sudo find /var/tmp/tmp4175976599880764237/template/tmpl/1/3 -name '*.qcow2'
+ destfiles=
+ [[ '' != '' ]]
+ tmpfolder=/var/tmp/cloud/templates/
+ mkdir -p /var/tmp/cloud/templates/
+ tmplfile=/var/tmp/cloud/templates//926af4ff-9244-4941-8794-5f7eb6e4390c.qcow2
+ touch /var/tmp/cloud/templates//926af4ff-9244-4941-8794-5f7eb6e4390c.qcow2
+ [[ 0 -ne 0 ]]
++ sudo df -P /var/tmp/tmp4175976599880764237/template/tmpl/1/3
++ awk '{print $4}'
++ tail -1
+ destcap=33709824
+ '[' 33709824 -lt 2120000 ']'
++ df -P /var/tmp/cloud/templates/
++ awk '{print $4}'
++ tail -1
+ localcap=54867708
+ '[' 54867708 -lt 2120000 ']'
+ [[ 1 == 1 ]]
+ sudo cp /usr/share/cloudstack-management/templates/systemvm/systemvmtemplate-4.22.0-x86_64-kvm.qcow2.bz2 /var/tmp/cloud/templates//926af4ff-9244-4941-8794-5f7eb6e4390c.qcow2
+ [[ 0 -ne 0 ]]
+++ dirname /usr/share/cloudstack-common/scripts/storage/secondary/setup-sysvm-tmplt
++ /usr/share/cloudstack-common/scripts/storage/secondary/createtmplt.sh -s 2 -d 'SystemVM Template ( kvm )' -n 926af4ff-9244-4941-8794-5f7eb6e4390c.qcow2 -t /var/tmp/tmp4175976599880764237/template/tmpl/1/3/ -f /var/tmp/cloud/templates//926af4ff-9244-4941-8794-5f7eb6e4390c.qcow2 -u -v -c
Uncompressing to /var/tmp/cloud/templates//926af4ff-9244-4941-8794-5f7eb6e4390c.qcow2.tmp (type bz2)...could take a long time
Copying to /var/tmp/tmp4175976599880764237/template/tmpl/1/3//926af4ff-9244-4941-8794-5f7eb6e4390c.qcow2...could take a while
+ installrslt=
+ [[ 0 -ne 0 ]]
+ tmpdestdir=/var/tmp/cloud/templates/
+ '[' qcow2 == ova ']'
+ rm -rf /var/tmp/cloud/templates//926af4ff-9244-4941-8794-5f7eb6e4390c.qcow2.tmp
+ tmpltfile=/var/tmp/tmp4175976599880764237/template/tmpl/1/3/926af4ff-9244-4941-8794-5f7eb6e4390c.qcow2
++ sudo ls -l /var/tmp/tmp4175976599880764237/template/tmpl/1/3/926af4ff-9244-4941-8794-5f7eb6e4390c.qcow2
++ awk '-F ' '{print $5}'
+ tmpltsize=522649088
+ [[ qcow2 == qcow2 ]]
++ sudo /usr/bin/qemu-img info /var/tmp/tmp4175976599880764237/template/tmpl/1/3/926af4ff-9244-4941-8794-5f7eb6e4390c.qcow2
++ grep -i 'virtual size'
++ sed -ne 's/.*(\([0-9]*\).*/\1/p'
++ xargs
+ vrtmpltsize=5242880000
+ templateId=3
+ sudo touch /var/tmp/tmp4175976599880764237/template/tmpl/1/3/template.properties
+ echo qcow2=true
+ echo id=3
+ echo public=true
+ echo qcow2.filename=926af4ff-9244-4941-8794-5f7eb6e4390c.qcow2
+ echo uniquename=routing-3
+ echo qcow2.virtualsize=5242880000
+ echo virtualsize=5242880000
+ echo qcow2.size=522649088
+ sudo cp /var/tmp/cloud/templates//template.properties /var/tmp/tmp4175976599880764237/template/tmpl/1/3/template.properties
+ '[' -f /var/tmp/cloud/templates//template.properties ']'
+ rm -rf /var/tmp/cloud/templates//template.properties
+ echo 'Successfully installed system VM template /usr/share/cloudstack-management/templates/systemvm/systemvmtemplate-4.22.0-x86_64-kvm.qcow2.bz2 and template.properties to /var/tmp/tmp4175976599880764237/template/tmpl/1/3'
Successfully installed system VM template /usr/share/cloudstack-management/templates/systemvm/systemvmtemplate-4.22.0-x86_64-kvm.qcow2.bz2 and template.properties to /var/tmp/tmp4175976599880764237/template/tmpl/1/3
+ exit 0
issue 3 : Mysql version 8.4.10 is supported
ubuntu@Ubuntu-26:~$ mysql --version
mysql Ver 8.4.10-0ubuntu0.26.04.1 for Linux on x86_64 ((Ubuntu))
issue 4 : Guest os support is added
|
thanks @kiranchavala merging as discussed offline, let's leave the guest os support to next release |
Description
This PR removes requiretty from /etc/sudoers.d/cloudstack on Debian/ubuntu management server
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?